package com.pangu.export;

import cn.hutool.core.util.ObjectUtil;
import lombok.Data;
import org.hibernate.validator.internal.util.privilegedactions.GetResource;

/**
 * Created by etfox on 2019/10/27 22:28
 */
public class TestMain {

    public static void main(String[] args) {
        A a = new A();
        a.setStr("1");
        A a2 = ObjectUtil.cloneByStream(a);
        System.out.println(a2.getStr());
        a2.setStr("2");
        System.out.println(a.getStr());

        System.out.println(GetResource.class.getClassLoader().getResource("template/template_excel.xlsx").getPath());

    }

}

@Data
class A implements java.io.Serializable {

    String str;

}